import React from "react"
import ReactDOM from "react-dom"

class Test extends React.Component {
    constructor(props) {
        super(props)
    }

    render() {
        // console.log(this.props)

        return (
            <div>
                <p>2222</p>
                <p>{this.props.titlename}</p>
            </div>
        )
    }
}

import First from './FirstDemo/first.jsx'

// const titleName = "react name"
// ReactDOM.render(
//     <Test titlename={titleName}/>,
//     document.getElementById("example")
// );

ReactDOM.render(
    <First data="123"/>,
    document.getElementById("example")
)